<? if (!defined("BASEPATH")) exit("No direct script access allowed");

if(isset($arrCity)) {
	echo	"<hr/>";
	echo	"<section class=\"box\">";
	echo		"<h2 class=\"boxtitle\">".(($title == "Study abroad")?($this->lang->line("PROGRAM")):($title))." ".$this->lang->line("SPOTLIGHT")."</h2>";
	echo		"<div class=\"boxcontent cols cols3\">";

	foreach($arrCity as $cityData) {
		echo			"<article class=\"col\">";
		echo				anchor($cityData["conUrlName"]."/".$cityData["couUrlName"]."/".$cityData["cityUrlName"], (($cityData["cityImageNameThumb"])?("<img src=\"".UPLOADS.$cityData["cityImageNameThumb"]."\" alt=\"".$cityData["cityImageAlt"]."\" />"):("<img src=\"".MEDIA."images/no_image.png\" alt=\"".$this->lang->line("NO_IMAGE_AVAILABLE")."\" />")), "class=\"framed\"", $forced = TRUE);
		echo				"<h3>".anchor($cityData["conUrlName"]."/".$cityData["couUrlName"]."/".$cityData["cityUrlName"], $cityData["cityName"], "", $forced = TRUE)."</a></h3>";
		echo			"</article>";
	}

	echo		"</div>";
	echo	"</section>";
}

if(isset($arrInstitute)) {
	echo	"<hr/>";
	echo	"<section class=\"box\">";
	//echo		"<h2 class=\"boxtitle\">".$this->lang->line("STUDY_ABROAD_PROGRAM_SPOTLIGHT")."</h2>";
	echo		"<h2 class=\"boxtitle\">".(($title == "Study abroad")?($this->lang->line("PROGRAM")):($title))." ".$this->lang->line("SPOTLIGHT")."</h2>";
	echo		"<div class=\"boxcontent cols cols3\">";

	foreach($arrInstitute as $insData) {
		echo			"<article class=\"col\">";
		echo				anchor("institutes/".$insData["insUrlName"], (($insData["insImageNameThumb"])?("<img src=\"".UPLOADS.$insData["insImageNameThumb"]."\" alt=\"".$insData["insImageAlt"]."\" />"):("<img src=\"".MEDIA."images/no_image.png\" alt=\"".$this->lang->line("NO_IMAGE_AVAILABLE")."\" />")), "class=\"framed\"");
		if(isset($insData["majName"])) {
			echo				"<h3>".anchor("institutes/".$insData["insUrlName"]."/".$insData["majUrlName"], $insData["majName"]." in ".$insData["cityName"])."</a></h3>";
		}
		echo			"</article>";
	}

	echo		"</div>";
	echo	"</section>";
}